//
//  Shot.swift
//  DribbbleReader
//
//  Created by naoyashiga on 2015/05/17.
//  Copyright (c) 2015年 naoyashiga. All rights reserved.
//

import Foundation

class Shot: DribbbleBase {
    
    var recommend_theme = ""
    var image_url = ""
    var image_width = 0
    var image_height = 0
    var support = "0"
    var collection = "0"
    
    
    override init(data: NSDictionary) {
        super.init(data: data)
        
        if data["recommend_theme"] != nil {
            self.recommend_theme = (data["recommend_theme"] as? String)!
        }
        
        self.image_url = (data["image_url"] as? String)!
        self.image_width = data["image_width"] as?  NSNumber! as! Int
        self.image_height = data["image_height"] as?  NSNumber! as! Int
        if data["support"] != nil {
            self.support = (data["support"] as? String)!
        }
        if data["collection"] != nil {
            self.collection = (data["collection"] as? String)!
        }
        
    }
}
